<script>
function printPage5(id) {
	//document.getElementById('sidebar').style.visibility = 'hidden';
	document.getElementById('sidebar').style.display = 'none';
	//alert('a')
	//document.getElementById('sidebar').style.display = 'block';
	//document.getElementById('container').style.display = 'none';
	document.getElementById('header').style.display = 'none';
	//id = "&print=1";
	//var x=window.open('<?=$_SERVER['REQUEST_URI']?>'+id, 'newWin', "location=yes,scrollbars=yes,width=800,height=600");
}

//writeConsole('Hello from JavaScript!');
function printPage(content) {
	page_style = '<link href="stylesheets/default.css" rel="stylesheet" type="text/css">';
	var a = document.getElementById('kandungan')
	if (a == null) {
		content = document.getElementById('content').innerHTML;
	}
	else {
		content = document.getElementById('kandungan').innerHTML;
	}
	 top.consoleRef=window.open('','myconsole',
	  'width=800,height=600'
	   +',menubar=0'
	   +',toolbar=1'
	   +',status=0'
	   +',scrollbars=1'
	   +',resizable=1')
	 top.consoleRef.document.writeln(
	  '<html><head><title>SPK</title>'  + page_style +'</head>'
	   +'<body bgcolor=white onLoad="self.focus()">'
	   +content
	   +'</body></html>'
	 )
	 top.consoleRef.print();
	 top.consoleRef.document.close()
}


</script>

<?
if ($user_browser != 'msie') {
?>

    <div id="header">
        <div class="header_left color_555555">
        	<!--Rabu, 8 September 2010--> <? echo Date("d") . " " . $_month_lgnames[Date("m")] . " " . Date("Y");?>
        </div>
        <div class="header_left"><span class="color_004997 bold">Selamat Datang, <?=$_SESSION['ID_my_site']?> (<?=$_SESSION['NAMA_PENGGUNA']?>) </span></div>

        <div style="background: ;">
		  <table width="560">
		    <tr>
			  <td align="right">
			   <a href="javascript: printPage();" class=""><img src="images/icn_printer.gif" align="absbottom"> Cetak</a> &nbsp;&nbsp;
			   <a href="logout.jsp" class=""><img src="images/icn_logout.gif" align="absbottom" width="20" height="14">Daftar Keluar</a>
			  </td>
			</tr>
		  </table>
		</div>
<? } else { ?>

    <div id="header0">
        <div class="header_left color_555555">
        	<!--Rabu, 8 September 2010--> <? echo Date("d") . " " . $_month_lgnames[Date("m")] . " " . Date("Y");?>
        </div>
        <div class="header_left"><span class="color_004997 bold">Selamat Datang, <?=$_SESSION['ID_my_site']?> (<?=$_SESSION['NAMA_PENGGUNA']?>)  
		<? for ($i=0;$i<20;$i++) {
				echo "&nbsp;";
		   }
		
		?>
		<a href="javascript: printPage();" class=""><img src="images/icn_printer.gif" align="absbottom"> Cetak</a> &nbsp;&nbsp;
		<a href="logout.jsp" class=""><img src="images/icn_logout.gif" align="absbottom" width="20" height="14">Daftar Keluar</a>
		</span>
		</div>



<? } ?>
       
	  	  <!-- close header -->